package cn.gemframe.config.security;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.UUID;

@Data
@Component
@ConfigurationProperties("gem.security.token")
public class GemTokenProperties {

	//权限请求，是否开启验证
	private boolean openAuth = false;
	//单位秒
	private Integer accessTokenExpire = 6000;
	//单位秒
	private Integer refreshTokenExpire = 9000000;
	//是否开启token token过期
	private boolean openExpir = true;

}
